{% extends "moban1788/base.html" %}
{% block main %}
<div class="page-title cart-title">
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-12 text-center p-static">
        <div class="page-heading">
          <h2 class="white text-uppercase fz-36 ls-2">接口自动化日志</h2>
          <h6 class="work-sans fz-15 white mt-20">首页   <span class="mlr-10"> / </span>  自动化日志</h6>
        </div>
      </div>
    </div>
  </div>
</div>
<section class="pt-150">
    <div class="container">
        <div class="row">
            <div class="col-md-12 text-center">
                <h1 class="text-uppercase ls-3 bb gray-de"><span class="yellow"> 接口自动化日志-</span> Online</h1>
                <p class="mt-50 fz-15">
                    线上接口自动化日志的采集,展示.
                </p>
            </div>
        </div>
        <div class="row" style="margin-bottom: 2%">
          <div class="col-md-12">
            <div class="table-responsive mt-70">
              <table class="table my-cart no-margin">
                <thead>
                  <tr>
                    <th class="col-md-2">端口</th>
                    <th class="col-md-3" style="text-align: center;">接口</th>
                    <th class="col-md-1">结果</th>
                    <th class="col-md-2">模块</th>
                    <th class="col-md-2">用例</th>
                    <th class="col-md-2">时间戳</th>
                  </tr>
                </thead>
                <tbody>
                    {% for show in atserverlist.object_list %}
                        <tr {% if show.result == 0 %}class="danger"{% endif %}{% if show.result == 1 %}class="success"{% else %}class="active"{% endif %}>
                            <div>
{#                                                <td style="text-align: center">{{ show.id }}</td>#}
                                <td>{{ show.host }}</td>
                                <td>
                                    <div style="position:relative;width: 300px;height:auto; overflow-x:auto">
                                    {{ show.interface }}
                                    </div>
                                </td>
                                <td>{{ show.result_describe }}</td>
                                <td>{{ show.module }}</td>
                                <td>
                                   {{ show.casename }}
                                </td>
                                <td>{{ show.time }}</td>
                            </div>
                        </tr>
                    {% empty %}
                        <tr>
                            暂无数据
                        </tr>
                    {% endfor %}
                </tbody>
              </table>
            <div class="row col-lg-12" style="text-align: center; margin-top: 2%">
                <span class="step-links">
                    <ul class="pager">
                     {% if atserverlist.has_previous %}
                     <li class="prev">
                         <a href="?page={{ atserverlist.previous_page_number }}" class="previous" style="font-size: 14px">上一页</a>
                     </li>
                     {% endif %}
                     第 {{ atserverlist.number }}/{{ atserverlist.paginator.num_pages }} 页
                     {% if atserverlist.has_next %}
                         <li class="prev">
                             <a href="?page={{ atserverlist.next_page_number }}" style="font-size: 14px">下一页</a>
                         </li>
                     {% endif %}
                        <li class="next"><a style="font-size: 14px">共{{ atserver.count }}条</a>
                    </ul>
                </span>
            </div>
            </div>
          </div>
        </div>
    </div>
</section>
{% endblock %}
{% block js %}
    <script src="../../../qa/static/js_new/jquery-1.12.4.min.js"></script>
    <script src="../../../qa/static/js_new/bootstrap.min.js"></script>
{% endblock %}